Caterpillars come in various colors and shapes to help camouflage themselves from predators. They spin a chrysalis, not a cocoon, when transforming into a butterfly. A caterpillar's life cycle includes 4 days in an egg, 2 weeks as a caterpillar eating leaves and vegetables, 10 days inside a chrysalis, and then 2-6 weeks as an adult butterfly. Caterpillars live on trees, bushes, or in dark areas where they can find food like leaves, twigs, tomatoes, and lettuce.